<include file="../header" />
<body class="J_scroll_fixed">
    <script>

        $(document).ready(function() {

            $('button.online').click(function () {

                var id = $(this).attr("id");
                layer.open({

                    type: 2,
                    title: '线上购买开通',
                    maxmin: false,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['80%', '98%'],
                    content: "{:U('vip/onlineOpen')}&id="+id

                });
            });
            
        });

    </script>
<form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('vip/onlineIndex')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            手机号：
        <input type="text" name="mobile" class="input" value="{$mobile}" />
        会员姓名：
        <input type="text" name="vipName" class="input" value="{$vipName}" />
            <button class="btn btn-primary">搜索</button>
            <a class="btn" href="{:U('vip/onlineIndex')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>创建时间</th>
            <th>会员姓名</th>
            <th>手机号</th>
            <th>性别</th>
            <th>身份证号</th>
            <th>线上购买</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.vip_id}</td>
                <td>{$vo.create_time}</td>
                <td>{$vo.vip_name}</td>
                <td>{$vo.mobile}</td>
                <td>
                    <if condition="$vo['gender'] eq $gender['MALE']">男
                    <elseif condition="$vo['gender'] eq $gender['FEMALE']" />女
                    </if>
                </td>
                <td>{$vo.idcard_number}</td>
                <td><button class="online btn" id="{$vo['vip_id']}">开通</button></td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>